Composition of Function problems